Composition of Function problems